<?php
class Zend_View_Helper_SelectList {
	protected $_view;
	function setView($view) { 
		$this->_view = $view; 
	} 
	
	function selectList($results, $type="city") {
		$out = "";
		if ($type == "city")
			$out.="<option label='-- Select city --' value='0'>-- Select city --</option>";
		else
			$out.="<option label='-- Select region --' value='0'>-- Select region --</option>";
		
		if(empty($results))
			return $out;
			
		foreach($results as $i => $value) {
			$out.="<option label='".$value."' value='".$i."'>".$value."</option>";
		}	   
       return $out;
	}
}
?>